<script>
	import { useUserStore } from '@/store/userStore.js'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			uni.hideTabBar({
			    fail: () => {}
			});
			const userStore = useUserStore()
			userStore.setStatusBarHeight()
			console.log(userStore.token)
			if(!userStore.token){
				uni.reLaunch({
					url:'/pages/login/login'
				})
			}
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	page{
		background-color: #F5F6F7;
	}
	/*每个页面公共css */
	.flex-row {
	  display: flex;
	  flex-direction: row;
	}
	
	.flex-col {
	  display: flex;
	  flex-direction: column;
	}
	
	.justify-start {
	  justify-content: flex-start;
	}
	
	.justify-end {
	  justify-content: flex-end;
	}
	
	.justify-center {
	  justify-content: center;
	}
	
	.justify-between {
	  justify-content: space-between;
	}
	
	.justify-around {
	  justify-content: space-around;
	}
	
	.justify-evenly {
	  justify-content: space-evenly;
	}
	
	.items-start {
	  align-items: flex-start;
	}
	
	.items-end {
	  align-items: flex-end;
	}
	
	.items-center {
	  align-items: center;
	}
	
	.items-baseline {
	  align-items: baseline;
	}
	
	.items-stretch {
	  align-items: stretch;
	}
	.line{
		width: 100%;
		height: 1rpx;
		background-color: #E7E7E7;
	}
	.body-content-padding{
		padding-bottom: 100rpx;
	}
	.nav-bar{
		background-color: #3274F9;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 10;
	}
	.nav-bar-white{
		background-color: #fff;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 10;
	}
	/* 使用深度选择器 */
	::v-deep .uni-nav-bar-text {
	  font-size: 19px !important;
	}
</style>
